package com.nbsaas.boot.marketing.rest.convert;

import com.nbsaas.boot.marketing.data.entity.PointsRecord;
import com.nbsaas.boot.marketing.api.domain.response.PointsRecordResponse;

import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;
/**
* 积分记录-实体对象转化成响应对象
*/

public class PointsRecordResponseConvert  implements Converter<PointsRecordResponse,PointsRecord> {

    @Override
    public PointsRecordResponse convert(PointsRecord source) {
        PointsRecordResponse  result = new  PointsRecordResponse();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }

}

